package com.duyi.demo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

//第一点 需要有无参构造器
//第二点 需要实现序列化
//第三点 需要注意类名和数据库表名的对应关系
@Data @AllArgsConstructor
@NoArgsConstructor
@TableName("illness")
public class DataBean implements Serializable {

    private static final long serialVersionUID = 3472209336414211943L;
    @TableId(type = IdType.AUTO)
    private Long id;
    private String area;
    private int confirmAdd;
    private int confirm;
    private int dead;
    private int heal;
}
